<?php

namespace Summer\location\Models;

use \Backend\Models\ExportModel;

class ProvinceExport extends ExportModel {

    public function exportData($columns, $sessionKey = null)
    {
        $province = ProvinceModel::all();
        $province->each(function($province) use ($columns) {
            $province->addVisible($columns);
        });

        return $province->toArray();
        
    }

}
